package ssm.another;

/**
 * Created by libing on 2016/12/12.
 */
public class User {
    private int user_id;//用户id，自增
    private String user_name;//用户名字
    private String user_password;//用户密码，默认123456
    private String password_confirm;
    private String user_key;//用于加密的key
    private String user_phone;//用户电话
    private int user_sex;//用户性别，0表示男，1表示女，默认是0
    private String user_job;//用户的工作
    private String user_img;//用户头像路径
    private double user_account;//用户余额
    private double user_integral;//用户积分
    private String user_email;//用户邮箱
    private int user_type;//用户类型，0表示普通用户、1表示商家用户、2表示管理员，默认是0
    private String user_discription;//用户如果是商家用户的话，用于商家描述

    public User(){}

    public User(String user_password,
                String password_confirm,
                String user_phone,
                String user_img,
                String user_email,
                int user_type) {
        this.user_password = user_password;
        this.password_confirm = password_confirm;
        this.user_phone = user_phone;
        if (user_img != null) {
            this.user_img = user_img;
        }
        this.user_email = user_email;
        this.user_type = user_type;
    }

    public User(String user_name, String user_password, String user_phone, int user_type, String user_email) {
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_phone = user_phone;
        this.user_type = user_type;
        this.user_email = user_email;
    }

    public User(int user_id,
                String user_name,
                String user_password,
                String user_key,
                String user_phone,
                int user_sex,
                String user_job,
                String user_img,
                double user_account,
                double user_integral,
                String user_email,
                int user_type,
                String user_discription) {
        this.user_id = user_id;
        this.user_name = user_name;
        this.user_password = user_password;
        this.user_key = user_key;
        this.user_phone = user_phone;
        this.user_sex = user_sex;
        this.user_job = user_job;
        this.user_img = user_img;
        this.user_account = user_account;
        this.user_integral = user_integral;
        this.user_email = user_email;
        this.user_type = user_type;
        this.user_discription = user_discription;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getPassword_confirm() {
        return password_confirm;
    }

    public void setPassword_confirm(String password_confirm) {
        this.password_confirm = password_confirm;
    }

    public String getUser_key() {
        return user_key;
    }

    public void setUser_key(String user_key) {
        this.user_key = user_key;
    }

    public String getUser_phone() {
        return user_phone;
    }

    public void setUser_phone(String user_telephone) {
        this.user_phone = user_telephone;
    }

    public int getUser_sex() {
        return user_sex;
    }

    public void setUser_sex(int user_sex) {
        this.user_sex = user_sex;
    }

    public String getUser_job() {
        return user_job;
    }

    public void setUser_job(String user_job) {
        this.user_job = user_job;
    }

    public String getUser_img() {
        return user_img;
    }

    public void setUser_img(String user_img) {
        this.user_img = user_img;
    }

    public double getUser_account() {
        return user_account;
    }

    public void setUser_account(double user_account) {
        this.user_account = user_account;
    }

    public double getUser_integral() {
        return user_integral;
    }

    public void setUser_integral(double user_integral) {
        this.user_integral = user_integral;
    }

    public String getUser_email() {
        return user_email;
    }

    public void setUser_email(String user_email) {
        this.user_email = user_email;
    }

    public int getUser_type() {
        return user_type;
    }

    public void setUser_type(int user_type) {
        this.user_type = user_type;
    }

    public String getUser_discription() {
        return user_discription;
    }

    public void setUser_discription(String user_discription) {
        this.user_discription = user_discription;
    }
}
